<?php
$orderhao=$_GET['orderhao'];
include "sql.php";
$time=time();
$cha=$con->query("update userorder set zhuangtai='2',otime='{$time}' where orderhao='{$orderhao}' ");
if($cha){
    echo "成功";
}else{
    echo "失败";
}